package model;
// Generated 12-mei-2012 21:56:28 by Hibernate Tools 3.2.1.GA


import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * Lid generated by hbm2java
 */
@Entity
@Table(name="lid"
    ,catalog="dryves"
    , uniqueConstraints = @UniqueConstraint(columnNames="LID_LOGIN") 
)
public class Lid  implements java.io.Serializable {


     private Integer lidId;
     private boolean lidActivated;
     private String lidActivationkey;
     private String lidAnaam;
     private boolean lidDeleted;
     private String lidDisplaynaam;
     private String lidEmail;
     private Date lidGeboortedatum;
     private String lidHuisnummer;
     private String lidLogin;
     private String lidPassword;
     private String lidPostcode;
     private String lidProvincie;
     private Date lidRegistered;
     private boolean lidSpam;
     private String lidTussenvoegsel;
     private String lidVnaam;
     private int rolId;
     private Set<Beoordeling> beoordelingsForLidIdInitiator = new HashSet<Beoordeling>(0);
     private Set<Beoordeling> beoordelingsForLidIdTarget = new HashSet<Beoordeling>(0);
     private Set<Advertentie> advertenties = new HashSet<Advertentie>(0);

    public Lid() {
    }

	
    public Lid(boolean lidActivated, String lidActivationkey, boolean lidDeleted, String lidDisplaynaam, String lidLogin, String lidProvincie, Date lidRegistered, boolean lidSpam, int rolId) {
        this.lidActivated = lidActivated;
        this.lidActivationkey = lidActivationkey;
        this.lidDeleted = lidDeleted;
        this.lidDisplaynaam = lidDisplaynaam;
        this.lidLogin = lidLogin;
        this.lidProvincie = lidProvincie;
        this.lidRegistered = lidRegistered;
        this.lidSpam = lidSpam;
        this.rolId = rolId;
    }
    public Lid(boolean lidActivated, String lidActivationkey, String lidAnaam, boolean lidDeleted, String lidDisplaynaam, String lidEmail, Date lidGeboortedatum, String lidHuisnummer, String lidLogin, String lidPassword, String lidPostcode, String lidProvincie, Date lidRegistered, boolean lidSpam, String lidTussenvoegsel, String lidVnaam, int rolId, Set<Beoordeling> beoordelingsForLidIdInitiator, Set<Beoordeling> beoordelingsForLidIdTarget, Set<Advertentie> advertenties) {
       this.lidActivated = lidActivated;
       this.lidActivationkey = lidActivationkey;
       this.lidAnaam = lidAnaam;
       this.lidDeleted = lidDeleted;
       this.lidDisplaynaam = lidDisplaynaam;
       this.lidEmail = lidEmail;
       this.lidGeboortedatum = lidGeboortedatum;
       this.lidHuisnummer = lidHuisnummer;
       this.lidLogin = lidLogin;
       this.lidPassword = lidPassword;
       this.lidPostcode = lidPostcode;
       this.lidProvincie = lidProvincie;
       this.lidRegistered = lidRegistered;
       this.lidSpam = lidSpam;
       this.lidTussenvoegsel = lidTussenvoegsel;
       this.lidVnaam = lidVnaam;
       this.rolId = rolId;
       this.beoordelingsForLidIdInitiator = beoordelingsForLidIdInitiator;
       this.beoordelingsForLidIdTarget = beoordelingsForLidIdTarget;
       this.advertenties = advertenties;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="LID_ID", unique=true, nullable=false)
    public Integer getLidId() {
        return this.lidId;
    }
    
    public void setLidId(Integer lidId) {
        this.lidId = lidId;
    }
    
    @Column(name="LID_ACTIVATED", nullable=false)
    public boolean isLidActivated() {
        return this.lidActivated;
    }
    
    public void setLidActivated(boolean lidActivated) {
        this.lidActivated = lidActivated;
    }
    
    @Column(name="LID_ACTIVATIONKEY", nullable=false, length=60)
    public String getLidActivationkey() {
        return this.lidActivationkey;
    }
    
    public void setLidActivationkey(String lidActivationkey) {
        this.lidActivationkey = lidActivationkey;
    }
    
    @Column(name="LID_ANAAM", length=50)
    public String getLidAnaam() {
        return this.lidAnaam;
    }
    
    public void setLidAnaam(String lidAnaam) {
        this.lidAnaam = lidAnaam;
    }
    
    @Column(name="LID_DELETED", nullable=false)
    public boolean isLidDeleted() {
        return this.lidDeleted;
    }
    
    public void setLidDeleted(boolean lidDeleted) {
        this.lidDeleted = lidDeleted;
    }
    
    @Column(name="LID_DISPLAYNAAM", nullable=false, length=250)
    public String getLidDisplaynaam() {
        return this.lidDisplaynaam;
    }
    
    public void setLidDisplaynaam(String lidDisplaynaam) {
        this.lidDisplaynaam = lidDisplaynaam;
    }
    
    @Column(name="LID_EMAIL", length=100)
    public String getLidEmail() {
        return this.lidEmail;
    }
    
    public void setLidEmail(String lidEmail) {
        this.lidEmail = lidEmail;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="LID_GEBOORTEDATUM", length=10)
    public Date getLidGeboortedatum() {
        return this.lidGeboortedatum;
    }
    
    public void setLidGeboortedatum(Date lidGeboortedatum) {
        this.lidGeboortedatum = lidGeboortedatum;
    }
    
    @Column(name="LID_HUISNUMMER", length=6)
    public String getLidHuisnummer() {
        return this.lidHuisnummer;
    }
    
    public void setLidHuisnummer(String lidHuisnummer) {
        this.lidHuisnummer = lidHuisnummer;
    }
    
    @Column(name="LID_LOGIN", unique=true, nullable=false, length=60)
    public String getLidLogin() {
        return this.lidLogin;
    }
    
    public void setLidLogin(String lidLogin) {
        this.lidLogin = lidLogin;
    }
    
    @Column(name="LID_PASSWORD", length=64)
    public String getLidPassword() {
        return this.lidPassword;
    }
    
    public void setLidPassword(String lidPassword) {
        this.lidPassword = lidPassword;
    }
    
    @Column(name="LID_POSTCODE", length=6)
    public String getLidPostcode() {
        return this.lidPostcode;
    }
    
    public void setLidPostcode(String lidPostcode) {
        this.lidPostcode = lidPostcode;
    }
    
    @Column(name="LID_PROVINCIE", nullable=false, length=20)
    public String getLidProvincie() {
        return this.lidProvincie;
    }
    
    public void setLidProvincie(String lidProvincie) {
        this.lidProvincie = lidProvincie;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="LID_REGISTERED", nullable=false, length=19)
    public Date getLidRegistered() {
        return this.lidRegistered;
    }
    
    public void setLidRegistered(Date lidRegistered) {
        this.lidRegistered = lidRegistered;
    }
    
    @Column(name="LID_SPAM", nullable=false)
    public boolean isLidSpam() {
        return this.lidSpam;
    }
    
    public void setLidSpam(boolean lidSpam) {
        this.lidSpam = lidSpam;
    }
    
    @Column(name="LID_TUSSENVOEGSEL", length=20)
    public String getLidTussenvoegsel() {
        return this.lidTussenvoegsel;
    }
    
    public void setLidTussenvoegsel(String lidTussenvoegsel) {
        this.lidTussenvoegsel = lidTussenvoegsel;
    }
    
    @Column(name="LID_VNAAM", length=50)
    public String getLidVnaam() {
        return this.lidVnaam;
    }
    
    public void setLidVnaam(String lidVnaam) {
        this.lidVnaam = lidVnaam;
    }
    
    @Column(name="ROL_ID", nullable=false)
    public int getRolId() {
        return this.rolId;
    }
    
    public void setRolId(int rolId) {
        this.rolId = rolId;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="lidByLidIdInitiator")
    public Set<Beoordeling> getBeoordelingsForLidIdInitiator() {
        return this.beoordelingsForLidIdInitiator;
    }
    
    public void setBeoordelingsForLidIdInitiator(Set<Beoordeling> beoordelingsForLidIdInitiator) {
        this.beoordelingsForLidIdInitiator = beoordelingsForLidIdInitiator;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="lidByLidIdTarget")
    public Set<Beoordeling> getBeoordelingsForLidIdTarget() {
        return this.beoordelingsForLidIdTarget;
    }
    
    public void setBeoordelingsForLidIdTarget(Set<Beoordeling> beoordelingsForLidIdTarget) {
        this.beoordelingsForLidIdTarget = beoordelingsForLidIdTarget;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="lid")
    public Set<Advertentie> getAdvertenties() {
        return this.advertenties;
    }
    
    public void setAdvertenties(Set<Advertentie> advertenties) {
        this.advertenties = advertenties;
    }




}


